home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Easy 2010 May
/
Mac Life Ubuntu.iso
/
casper
/
filesystem.squashfs
/
etc
/
acpi
/
resume.d
/
58-proc-sysfs-restore-state.sh
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Linux/UNIX/POSIX Shell Script
|
2009-03-27
|
361 b
|
13 lines
#!/bin/sh
# Paul Sladen 2007-03-22
# Restore saved /sys and /proc states following resume.
# See suspend.d/??-proc-sysfs-restore-state.sh for details.
if [ -r /var/run/proc-sysfs-save-state ] ; then
while read WHERE foo WHAT ; do
if [ "x$foo" = "x=" -a -w "$WHERE" ] ; then
echo -n "$WHAT" > "$WHERE"
fi
done < /var/run/proc-sysfs-save-state
fi